From af09c151be9e1352d6fb748cd670f526fe9ad55a Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Tue, 17 May 2016 18:33:27 -0400 Subject: [PATCH] Add a `[dev-dependencies]` example --- src/doc/specifying-dependencies.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/doc/specifying-dependencies.md b/src/doc/specifying-dependencies.md index bfa92e9e6..ac121c714 100644 --- a/src/doc/specifying-dependencies.md +++ b/src/doc/specifying-dependencies.md @@ -286,7 +286,14 @@ native = { path = "native/x86_64" } # Development dependencies You can add a `[dev-dependencies]` section to your `Cargo.toml` whose format -is equivalent to `[dependencies]`. Dev-dependencies are not used when compiling +is equivalent to `[dependencies]`: + +```toml +[dev-dependencies] +tempdir = "0.3" +``` + +Dev-dependencies are not used when compiling a package for building, but are used for compiling tests, examples, and benchmarks. -- 2.30.2